package edu.mit.media.fv.layers
{
	import edu.mit.media.fv.blocks.*;
	import edu.mit.media.fv.components.*;
	import edu.mit.media.fv.events.*;
	import edu.mit.media.fv.fluidspace.*;
	import edu.mit.media.fv.icons.*;
	import edu.mit.media.fv.view.*;
	
	import flash.display.DisplayObject;
	
	public class SearchLayer extends ScrollableLayer
	{
		public function SearchLayer(x:int = 0, y:int = 0, width:int = 650, height:int = 100, name:String = "", color:uint = 0xFFFFFF, icon:DisplayObject = null)
		{
			super(x, y, width, height, icon);
			this.label = name;
			this.backgroundColor = color;
			this.reform();
		}
		public override function dropBlock(block:Block):void{
			if(block.blockContainer is ActiveLayer){
				block.selfDestruct();
			}else{
				block.snapBack();
			}
		}
		
	}
}